{if $action != 'ajax'}
{template 'header', 'mobile'}
<div id="head-bar">
<div class="head-bar">
<div class="head-bar-back">
{if $itemid || $catid || $areaid || $kw}
<a href="{$back_link}" data-direction="reverse"><img src="static/img/icon-back.png" width="24" height="24"/><span>返回</span></a>
{else}
<a href="channel.php" data-direction="reverse"><img src="static/img/icon-back.png" width="24" height="24"/><span>频道</span></a>
{/if}
</div>
<div class="head-bar-title">{$head_name}</div>
<div class="head-bar-right">
<a href="javascript:{if $itemid}Dsheet('{if $could_answer}<a href=&#34;know.php?action=answer&itemid={$itemid}&page={$page}&#34; data-transition=&#34;slideup&#34;><span>我来回答</span></a>|{/if}<a href=&#34;{$MURL}{$DT[file_my]}?mid={$moduleid}&action=add&cid={$catid}&#34; rel=&#34;external&#34;><span>我要提问</span></a>|<a href=&#34;{if $DT_MOB[browser]=='weixin'||$DT_MOB[browser]=='qq'}javascript:share_tips();{else}share.php?moduleid={$moduleid}&itemid={$itemid}{/if}&#34;  data-transition=&#34;slideup&#34;><span>分享好友</span></a>|<a href=&#34;{mobileurl($moduleid)}&#34; data-direction=&#34;reverse&#34;><span>{$MOD[name]}首页</span></a>|<a href=&#34;channel.php&#34; data-direction=&#34;reverse&#34;><span>频道列表</span></a>', '取消');{else}Dsheet('<a href=&#34;{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}&action=add&cid={$catid}&#34; rel=&#34;external&#34;><span>我要提问</span></a>|<a href=&#34;search.php?action=mod{$moduleid}&catid={$catid}&areaid={$areaid}&#34;><span>{$MOD[name]}搜索</span></a>|<a href=&#34;category.php?moduleid={$moduleid}&#34;><span>按分类浏览</span></a>|<a href=&#34;area.php?moduleid={$moduleid}&#34;><span>按地区浏览</span></a>', '取消');{/if}"><img src="static/img/icon-action.png" width="24" height="24"/></a>
</div>
</div>
<div class="head-bar-fix"></div>
</div>
{/if}
{if $itemid}
<div class="main">
	<div class="title"><strong>{$title}</strong></div>
	<div class="info">关注:{$hits}&nbsp;&nbsp;答案:{$answer}&nbsp;&nbsp;悬赏:{$credit}</div>
	{if $process == 1 || $process == 2}
	<div class="info" style="padding-top:16px;">离问题结束还有{secondstodate($totime-$DT_TIME)}</div>
	{elseif $process == 3}
	<div class="info" style="padding-top:16px;">解决时间 {timetodate($updatetime, 5)}</div>
	{/if}
	{if $page == 1}
	<div class="list-user">
	<img src="{useravatar($hidden ? '' : $username)}" width="32" height="32"/>
	<ul>
	<li><span>{$PROCESS[$process]}</span>{if $hidden}匿名{else}<a href="know.php?action=user&username={$username}&itemid={$itemid}" class="b">{$passport}</a>{/if}</li>
	<li><em>{$editdate}</em></li>
	</ul>
	</div>
	<div class="content">
	{$content}
	{if $addition}
	<strong>问题补充：</strong><br/>
	{nl2br($addition)}
	{/if}
	</div>
	<div class="head bd-b"><strong>最佳答案</strong></div>
	{if $user_status == 3 && $best}
	<div class="list-user">
	<img src="{useravatar($best['hidden'] ? '' : $best['username'])}" width="32" height="32"/>
	<ul>
	<li><span>{if $expert}专家{/if}</span>{if $best[hidden]}匿名{else}<a href="know.php?action=user&username={$best[username]}&itemid={$itemid}" class="b">{$best[passport]}</a>{/if}</li>
	<li><em>{timetodate($best[addtime], 5)}</em></li>
	</ul>
	</div>
	{/if}
	<div class="content">
	{if $best}
		{if $user_status == 3}
			{nl2br($best[content])}
		{else}
			{template 'chip-content', 'mobile'}
		{/if}
	{else}
	暂无最佳答案{if $could_answer}&nbsp;&nbsp;&nbsp;&nbsp;<a href="know.php?action=answer&itemid={$itemid}&page={$page}" data-transition="slideup" class="b">我来回答</a>{/if}
	{/if}
	</div>
	{/if}
	{if $answers}
	<div class="head bd-b"><strong>全部回答</strong></div>	
	{loop $answers $k $v}
	<div class="list-user">
	<img src="{useravatar($v['hidden'] ? '' : $v['username'])}" width="32" height="32"/>
	<ul>
	<li><span>{$v[floor]}楼</span>{if $v[hidden]}匿名{else}<a href="know.php?action=user&username={$v[username]}&itemid={$itemid}" class="b">{if $v[username]}{$v[passport]}{else}{ip2area($item[ip])}访客{/if}</a>{/if}</li>
	<li><em>{timetodate($v[addtime], 5)}</em></li>
	</ul>
	</div>
	<div class="content">{$v[content]}</div>
	{/loop}
	{/if}
</div>
{if $DT_MOB[browser] == 'weixin' ||  $DT_MOB[browser] == 'qq'}{template 'chip-share', 'mobile'}{/if}
{else}
	<style type="text/css">
	.list-ask {height:66px;padding:0 16px;}
	.list-ask p {margin:6px 0 0 0;}
	</style>
	<div class="list-tab bd-b">
		<ul>
			<li{if $typeid==0} class="on"{/if}><a href="index.php?moduleid={$moduleid}&catid={$catid}&typeid=0" data-transition="flip"><span>全部问题</span></a></li>
			<li{if $typeid==1} class="on"{/if}><a href="index.php?moduleid={$moduleid}&catid={$catid}&typeid=1" data-transition="flip"><span>等待解决</span></a></li>
			<li{if $typeid==2} class="on"{/if}><a href="index.php?moduleid={$moduleid}&catid={$catid}&typeid=2" data-transition="flip"><span>已经解决</span></a></li>
		</ul>
	</div>
	{if $lists}
	{loop $lists $v}
	<div class="list-img list-ask">
	<ul>
	<li><a href="{$v[linkurl]}"><strong>{$v[title]}</strong></a></li>
	</ul>
	<p><span class="f_r">{$PROCESS[$v[process]]}</span><span>{$v[date]}</span></p>
	</div>
	{/loop}
	{else}
	{template 'chip-empty', 'mobile'}
	{/if}
{/if}
{if $action != 'ajax'}
{if $pages}<div class="pages">{$pages}</div>{/if}
{template 'footer', 'mobile'}
{/if}